<script setup>
import { onLaunch, onShow, onError } from '@dcloudio/uni-app'
import { AppInit } from './sheep'
// #ifdef H5
const token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJqd3RfeWgiLCJleHAiOjIwMTcwNDM2NzMsInN1YiI6IllIIiwiYXVkIjoiZXZlcnkiLCJuYmYiOjE3MDE2ODM2NzMsImlhdCI6MTcwMTY4MzY3MywianRpIjoxMDAwMSwidWlkIjozfQ.Yr4aa9WsjVwpGbAWHDVUrmFsqkrL7BWNFqkrsDR789g'
uni.setStorageSync('token', token)
// #endif

onLaunch(() => {
  // 隐藏原生导航栏 使用自定义底部导航
  uni.hideTabBar()

  // 加载Shopro底层依赖
  AppInit()
})

onError((err) => {
  console.log('AppOnError:', err)
})

onShow(() => {

})
</script>

<style lang="scss">
	/* 引入iconfont字体图标 */
	@import '@/static/iconfont/iconfont.css';
	/* 引入uview-plus的公共样式 */
	@import "@/uni_modules/uview-plus/index.scss";
	/* 每个页面公共css */
	@import '@/static/css/index.scss';

	html, body {
		// max-width: 750rpx;
		margin: 0 auto;
	}

	body, page {
		font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
		color: $u-main-color;
		font-size: 28rpx;
		height: 100%;
		line-height: 1.47;
		width: 100%;
		word-break: break-all; //英文文本不换行
		white-space: normal;
		margin: 0 auto;
		background-color: $u-bg-color;
		-webkit-overflow-scrolling: touch; // 解决ios滑动不流畅
	}

	::-webkit-scrollbar {
	  width: 0;
	  height: 0;
	  color: transparent;
	  display: none;
	}
</style>
